Public Class FormTraineeExperience
    Dim myTraineeExperience As DataTable
    Private Sub initalizeData()
        Try
            loadData()
        Catch ex As Exception
            Throw ex
        End Try
    End Sub
    Public Sub loadData()
        'Get Data From Database
        Try
            myTraineeExperience = TraineeExperiences.GetTraineeExperience
            dgvTraineeExperience.DataSource = myTraineeExperience
        Catch ex As Exception

        End Try
    End Sub

    Public Sub New()

        ' This call is required by the designer.
        InitializeComponent()

        ' Add any initialization after the InitializeComponent() call.
        Dbinterface.OpenConnection()
        initalizeData()
    End Sub


    Private Sub FormTraineeExperience_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        UI.FormatDataGrid(dgvTraineeExperience)
        btnAdd.Enabled = App.IsAuthorized(Permissions.Training_Trainee_Experience_Add)
        btnUpdate.Enabled = App.IsAuthorized(Permissions.Training_Trainee_Experience_Edit)
        btnDelete.Enabled = App.IsAuthorized(Permissions.Training_Trainee_Experience_Delete)

    End Sub
End Class